From f1e0d841481a3401bc54e15781e5c75838d3c651 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 21 Dec 2005 18:16:31 +0100 Subject: [PATCH] Declare kasprintf before use. Signed-off-by: Keir Fraser --- .../drivers/xen/xenbus/xenbus_client.c | 12 ++++++------ linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c index 048d33cb09..42b974f425 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c @@ -27,6 +27,12 @@ * IN THE SOFTWARE. */ +#include +#include +#include + +/* xenbus_probe.c */ +extern char *kasprintf(const char *fmt, ...); #if 0 #define DPRINTK(fmt, args...) \ @@ -36,11 +42,6 @@ #endif -#include -#include -#include - - int xenbus_watch_path(struct xenbus_device *dev, const char *path, struct xenbus_watch *watch, void (*callback)(struct xenbus_watch *, @@ -63,7 +64,6 @@ int xenbus_watch_path(struct xenbus_device *dev, const char *path, } EXPORT_SYMBOL(xenbus_watch_path); -extern char *kasprintf(const char *fmt, ...); int xenbus_watch_path2(struct xenbus_device *dev, const char *path, const char *path2, struct xenbus_watch *watch, diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c index acc677da6b..177b0d623f 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c @@ -41,6 +41,9 @@ #include #include "xenbus_comms.h" +/* xenbus_probe.c */ +extern char *kasprintf(const char *fmt, ...); + #define streq(a, b) (strcmp((a), (b)) == 0) struct xs_stored_msg { -- 2.30.2